package com.server;

import java.util.Map;

public class HttpServletRequest {
    private String requestName;
    private Map<String,String> paramenterMap;

    public HttpServletRequest(String requestName, Map<String, String> paramenterMap) {
        this.requestName = requestName;
        this.paramenterMap = paramenterMap;
    }
    //提供get方法获取值
    public String getRequestName(){
        return requestName;
    }

    public Map<String,String> getParamenterMap(){
        return paramenterMap;
    }
    public String getParameter(String key){
        return paramenterMap.get(key);
    }

}
